<?php

require_once('/../lib/dbconfig.php');

/* @var $db type */
global $db;

try {
    $db = new PDO("mysql:host=$db_config[server];dbname=$db_config[name]", $db_config['user'], $db_config['pwd']);
} catch (PDOException $e) {
    print "Erreur !: " . $e->getMessage() . "<br/>";
    die();
}